package com.b2b.exception;

import com.b2b.constant.ResultEnum;

public class B2BException extends UUException
{
	private static final long serialVersionUID = 2949024697799485186L;

	public B2BException(ResultEnum re)
	{
		super(re.getCode(), re.getMessage());
	}
	
	public B2BException(ResultEnum re, String message)
	{
		super(re.getCode(), re.getMessage() + ", " + message);
	}
	
	public B2BException(ResultEnum re, Throwable cause)
	{
		super(re.getCode(), re.getMessage(), cause);
	}
	
	public B2BException(int code, String message)
	{
		super(code, message);
	}
}
